namespace WCFThree.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Runtime.Serialization;
    [Table("student")]
    [DataContract(IsReference = true)]
    public partial class student
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public student()
        {
            scores = new HashSet<score>();
        }

        [Key]
        [StringLength(3)]
        [DataMember]
        public string sno { get; set; }

        [Required]
        [StringLength(100)]
        [DataMember]
        public string sname { get; set; }

        [StringLength(2)]
        [DataMember]
        public string ssex { get; set; }

        public DateTime? sbirthday { get; set; }

        [Column("class")]
        [StringLength(5)]
        [DataMember]
        public string _class { get; set; }


        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        [DataMember]
        public virtual ICollection<score> scores { get; set; }
    }
}
